<div class=" alert-success "><?php echo $this->Session->flash(); ?></div>
<div class="bs-example"  >
   <div id="response"> </div>
	<div class="menu-top">
		<div class="title-note">
		<h4><?php echo __('Báo cáo - Thống kê: 25/7/2014'); ?></h4>
		
		</div>
		<div class="option-action">
		<div class="form-group" style="margin-top:15px;">
			
			<div class="col-md-5">
				<div class='input-group date' id='datetimepicker8'>
                    <input type='text' class="form-control input-sm" name="data[Question][time_end]"/>
                    <span class="input-group-addon">
						<span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
			</div>
	  </div>
		<?php 	echo $this->Form->create('Mobile',array('class'=>'form-horizontal','type'=>'get')); 
					
					echo '<button type="submit" class="btn btn-primary btn-sm" style=" padding: 3px 8px;"> Search</button>';				
				  
				  
				  echo $this->Form->end(); ?>
			<a  style="position:relative;top:-25px;" href="/files/export.xls"><button type="button" class="btn btn-primary btn-sm">Xuất file</button></a>&nbsp;
			</div>
	</div>
	
	<table  class="table table-striped table-bordered">
	<tr>		
			<th width="5%">STT</th>
			<th>Tên bác sỹ </th>
			<th >Bệnh viện</th>
			
			<th>Phòng / Khoa</th>
			<th>Email</th>
			<th>Điện thoại</th>
			<th>Tổng câu trả lời đúng</th>
			<th>Tổng thời gian trả lời</th>
			<th>Thời gian kết thúc</th>
	</tr>
	
	<tr>		
			<td width="5%">1</td>
			<td>bs Việt </td>
			<td >Bạch Mai</td>
			<td>Khoa nhi</td>
			
			<td>viet@gmail.com</td>
			<td>0912345588</td>
			<td>3</td>
			<td>36</td>
			<td>25/7/2014 16:30:30</td>
	</tr>
	<tr>		
			<td width="5%">2</td>
			<td>bs Tuấn </td>
			<td >Bạch Mai</td>
			<td>Khoa nôi</td>
			
			<td>tuan@gmail.com</td>
			<td>0972345588</td>
			<td>3</td>
			<td>38</td>
			<td>25/7/2014 16:35:30</td>
	</tr>
	<tr>		
			<td width="5%">3</td>
			<td>bs Mai </td>
			<td >Bạch Mai</td>
			<td>Khoa nhi</td>
			
			<td>mai@gmail.com</td>
			<td>0912345588</td>
			<td>3</td>
			<td>40</td>
			<td>25/7/2014 16:40:35</td>
	</tr>
	
	<?php $i=1; foreach ($fullData as $data):
		if($data['countTrue'] >5):
	?>
        <tr>
            <td><?php echo $i ;?></td>
            <td><?php echo $data['name'];?></td>
            <td><?php echo $data['code'];?></td>
            <td><?php echo $data['location'];?></td>
            <td><?php echo $data['countTrue'];?></td>
            <td><?php echo $data['countTime'];?></td>
        </tr>   
        <?php
		endif;	
		$i++;endforeach; ?>
	</table>
    
</div>

